package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.DispatchPsnOrg;

import java.util.List;

/**
 * 
 * 调度员可调度车企 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-11-15 10:28
 */
public interface DispatchPsnOrgMapper extends BaseMapper<DispatchPsnOrg> {
    /**
     * 删除调度员可调度车企
     * @param  dispatchPsnOrg
     * @return    
     */
    int deleteDispatchPsnOrg(DispatchPsnOrg dispatchPsnOrg)throws Exception;
    /**
     * 批量调度员可调度车企
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchDispatchPsnOrg(String[] ids)throws Exception;
    /**
     * 查询调度员可调度车企列表
     * @param dispatchPsnOrg 调度员可调度车企对象
     * @return      
     */
    List<DispatchPsnOrg> selectListDispatchPsnOrg(DispatchPsnOrg dispatchPsnOrg)throws Exception;
    /**
     * 分页查询调度员可调度车企列表
     * @param page  分页对象
     * @param dispatchPsnOrg 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<DispatchPsnOrg> selectListDispatchPsnOrg(Page page, DispatchPsnOrg dispatchPsnOrg)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param dispatchPsnOrg 系统操作对象
     * @return     
     */
    List<DispatchPsnOrg> selectListDispatchPsnOrgForUpdate(DispatchPsnOrg dispatchPsnOrg)throws Exception;
    /**
     * 通过主键ID查询调度员可调度车企对象
     * @param id 主键id
     * @return    
     */
    DispatchPsnOrg findDispatchPsnOrgById(String id)throws Exception;

    /**
     * 插入调度员可调度车企
     * @param dispatchPsnOrg
     * @return   
     */
    int insertDispatchPsnOrg(DispatchPsnOrg dispatchPsnOrg) throws Exception ;
    /**
     * 更新调度员可调度车企
     * @param dispatchPsnOrg
     * @return     
     */
    int updateDispatchPsnOrg(DispatchPsnOrg dispatchPsnOrg) throws Exception ;


}
